﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RoccaStore
{
    [Table("FileSend")]
    public class FileSend
    {
        [Key]
        [Column("FileSendID")]
        public int ID { get; set; }

        public int SlugID { get; set; }

        [ForeignKey("SlugID")]
        public virtual Slug Slug { get; set; }

        public int? AccountID { get; set; }

        public string From { get; set; }

        public string IP { get; set; }

        public string Subject { get; set; }

        public string Message { get; set; }

        public string To { get; set; }

        public DateTime? Downloaded { get; set; }

        /// <summary>
        /// Availability in minutes
        /// This will allow us to choose whatever timeframe we like
        /// </summary>
        public int? Expiry { get; set; }

        public DateTime SendDate { get; set; }

        public bool Notify { get; set; }

        public FileSend()
        {
            SendDate = DateTime.Now;
        }
    }
}
